<link rel="stylesheet" href="__CSS__/mall.css"/>
<link rel="stylesheet" href="__STATIC__/plugins/dropify/css/dropify.css">

<style>
    a,a:hover {
        color:#000;
    }
</style>

<script src="__STATIC__/js/ace-extra.min.js"></script>
<script src="__STATIC__/plugins/dropify/js/dropify.js"></script>
<div class="page-header mbx">
    <h1>
        <small>
            {$companyName}分公司管理 ｜资质认证 <i class="ace-icon fa fa-times xx"></i>
        </small>
    </h1>
</div>
<div class="mbx" style="padding-bottom: 200px;">
    <div class="widget-box transparent">
        <div class="nav-tab" style="position: relative">
            <ul class="nav-tab-title ">
                <li class="nav-this">资质认证</li>
            </ul>
        </div>

        <div class="widget-body pad-t20">

            <form id="myform" name="myform" enctype="multipart/form-data" method="post" action="">

                <input type="hidden" name="id" value="{$authInfo.id}">
                <div class="list lecturer-list">
                    <div class="layer-detail add-list-detail">
                        <ul>
                            <li class="clearfix" style="overflow: hidden;">
                                <span class="pull-left layer-detail-span color-gray font-size16 s_detail-lword">申请认证方</span>
                                <div class="pull-left layer-detail-select" style="width: 20%">
                                    <input type="text" name="auth_name" placeholder="请填写资质认证方名称" value="{$authInfo.auth_name}" required>
                                </div>
                            </li>

                            <li class="clearfix" style="overflow: hidden;">
                                <span class="pull-left layer-detail-span color-gray font-size16 s_detail-lword">对公账户</span>
                                <div class="pull-left layer-detail-select" style="width: 20%">
                                    <input type="text" name="corporate_account" placeholder="请填写对公账户" value="{$authInfo.corporate_account}" onkeyup="value=value.replace(/[^\d]/g,'')" required>
                                </div>
                            </li>

                            <li class="clearfix" style="overflow: hidden;">
                                <span class="pull-left layer-detail-span color-gray font-size16 s_detail-lword">账户名</span>
                                <div class="pull-left layer-detail-select" style="width: 20%">
                                    <input type="text" name="account_name" placeholder="请填写账户名" value="{$authInfo.account_name}" required>
                                </div>
                            </li>

                            <li class="clearfix" style="overflow: hidden;">
                                <span class="pull-left layer-detail-span color-gray font-size16 s_detail-lword">法人姓名</span>
                                <div class="pull-left layer-detail-select" style="width: 20%">
                                    <input type="text" name="legal_person" placeholder="请填写法人姓名" value="{$authInfo.legal_person}" required>
                                </div>
                            </li>

                            <li class="clearfix" style="overflow: hidden;">
                                <span class="pull-left layer-detail-span color-gray font-size16 s_detail-lword">营业执照</span>
                                <div class="pull-left layer-detail-select" style="width: 20%">
                                    <input type="text" name="business_license" placeholder="请填写营业执照"  value="{$authInfo.business_license}" required>
                                </div>
                            </li>

                            <li class="clearfix">
                                <span class="pull-left layer-detail-span color-gray font-size16 s_detail-lword"></span>
                                <div class="pull-left " style="width: 30%">
                                    <input type="file" name="business_license_pic" class="dropify"  data-default-file="{$authInfo.business_license_pic}" {if condition="empty($authInfo)"}required{/if} />
                                    <span class="text-center color-gray font-size16">营业执照上传</span>
                                </div>

                                <div class="pull-left" style="width: 30%;margin-left: 20px;">
                                    <input type="file" name="account_license_pic" class="dropify"  data-default-file="{$authInfo.account_license_pic}" {if condition="empty($authInfo)"}required{/if}/>
                                    <span class="text-center color-gray font-size16">许可证上传</span>
                                </div>
                            </li>

                            {if condition="$authInfo.status != 1"}

                            <li>
                                <div class="dia-foot clearfix" style="padding-left: 94px;padding-top: 20px;">
                                    <div class="row">
                                        <div class="col-sm-1">
                                            <button class="btn bj-blue" type="submit">确定</button>
                                        </div>
                                        <div class="col-sm-1">
                                            <button class="btn btn-outline" type="reset">取消</button>
                                        </div>
                                    </div>
                                </div>
                            </li>
                            {else /}
                            <div class="panel panel-default">
                                <div class="panel-body text-success">
                                    已通过认证
                                </div>
                            </div>
                            {/if}
                        </ul>

                        {if condition="($authInfo.id > 0) AND ($authInfo.status != 1)"}
                        <div class="panel panel-default">
                            <div class="panel-body text-info">
                                等待审核中
                            </div>
                        </div>
                        {/if}

                    </div>
                </div>
            </form>
        </div>
    </div>

    <script>
        $('.dropify').dropify();
    </script>


</div>
